package cn.wolfcode.trip.base.domain;


import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class User extends BaseDomain{

    public static final Integer GENDER_MAN = 0;
    public static final Integer GENDER_WOMAN = 1;
    public static final Integer GENDER_SECRET = -1;

    private String email;

    private String nickName;

    private String password;

    private String place;

    private String headImgUrl;

    private Integer gender;

    private String coverImgUrl;

    private String sign;

    public String getGenderName(){
        String msg = "保密";
        if (gender == GENDER_MAN){
            msg = "男";
        }else if (gender == GENDER_WOMAN){
            msg = "女";
        }
        return msg;
    }

}